package cn.xiuxius.embedded.runconfig;


public enum EasySTCTask {
    RUN("Run", "run"),
    BUILD("Build", "build"),
    FLASH("Flash", "flash base"),
    ADV_FLASH("Advanced Flash", "flash adv"),
    CLEAN("Clean", "clean");
    private final String name;
    private final String command;

    EasySTCTask(String name, String command) {
        this.name = name;
        this.command = command;
    }

    public String getName() {
        return name;
    }

    public String getCommand() {
        return String.format("task %s", command);
    }

    @Override
    public String toString() {
        return name;
    }

}

